﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Ivory;
using Microsoft.Xna.Framework.Input;

namespace X13.Libs
{
    public sealed class GameCamera : Camera
    {
        //Fields

        //cTor
        public GameCamera(Game game) 
            : base(game, -Vector3.One, Vector3.Zero)
        {

        }

        //Methods
        public override void UpdateCamera(InputControl input, GameTime time)
        {
            float rotateY = 0f;

            if (input.IsKeyDown(Keys.Left) || input.IsKeyDown(Keys.A))
                rotateY += (0.01f * 3f);
            else if (input.IsKeyDown(Keys.Right) || input.IsKeyDown(Keys.D))
                rotateY -= (0.01f * 3f);
        }
    }
}
